package com.zzyl.nursing.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.io.File;
import java.time.LocalDateTime;

@Data
public class NursingTask  {

    private Long id;

    private String bedNumber;

    private String cancelReason;
    @TableField(fill = FieldFill.INSERT)

    private Long createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    @TableField(fill = FieldFill.INSERT)

    private LocalDateTime createTime;

    private Long elderId;

    private String elderName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime estimatedServerTime;

    private String mark;

    private String nursingId;

    private Integer projectId;

    private String projectName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime realServerTime;

    private String remark;

    /**
     * 状态：1 待执行，2 已执行，3 已关闭
     */
    private Integer status;

    private String taskImage;
    @TableField(fill = FieldFill.INSERT_UPDATE)

    private Long updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    private Integer taskType;

    @TableField(exist = false)
    private LocalDateTime endtime;

    @TableField(exist = false)
    private String[] nursingName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(exist = false)
    private LocalDateTime endTime;

}
